package com.niiwoo.civet.trade.dto.common;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 还款回调处理DTO，账户中心->交易中心
 * Created by bincun on 2017/12/1.
 */
@Getter
@Setter
public class RefundCallBackForAccountDTO implements Serializable {
    private static final long serialVersionUID = 658171788568048200L;

    //private String detailRequestNo;
    //private Byte status;
    //private Date refundTime;
    private Long projectId;
    private String borrowerUserId;
    private Integer currentPeriod;
    private String batchNo;

    @Override
    public boolean equals(Object obj) {
        return this.batchNo.equals(((RefundCallBackForAccountDTO)obj).getBatchNo());
    }

    @Override
    public int hashCode() {
        return batchNo.hashCode();
    }
}
